package com.ujiuye.dao;

import com.ujiuye.entity.Course;
import com.ujiuye.entity.Coursedetail;

import java.util.List;
import java.util.Map;

/**
 * CompanyName: IT优就业<br/>
 * Datetime: 2021/7/2 10:32<br/>
 *
 * @author TanJian
 */
public interface CourseDao {
    int addCourse(Course course);

    int totalCount(String courseName);

    List<Course> selectAllCourse(int currentPage,int startIndex, int pageSize, String courseName);

    int delAll(String cids);

    int updateCourse(Course course);

    int addCourseDetail(Coursedetail cd1);

    List<Course> findCourseByType(int courseType);

    int beforeTotalCount(String courseName, int courseType);

    List<Course> beforeSelectAllCourse(String courseName, int courseType, int startIndex, int pageSize);


    Course findCourse(int cid);


    Map<String, List<Coursedetail>> findCourseDetail(int cid);

    List<Course> findCourseByUid(int uid);

}

